#ifndef ITEM_H
#define ITEM_H

#include <QGraphicsItem>
#include <QObject>

class Item : public QGraphicsObject
{
    Q_OBJECT
public:
    Item();
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    void setPix(const QPixmap &pix);
    void setBase(const qreal &x, const qreal &y);
    void setMyPos();

public slots:
    void GetDy(const qreal &dy);

private:
    QPixmap Pix;
    qreal y;
    qreal basedx;
    qreal basedy;
    qreal initSite;
    qreal speed;
};

#endif // ITEM_H
